package com.xie.springCloud.service;

import com.xie.springCloud.dao.DeptMapper;
import com.xie.springCloud.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Autowired private DeptMapper dao;

    public boolean addDept(Dept dept) {
        return dao.addDept(dept);
    }

    public Dept getById(Long id) {
        return dao.getById(id);
    }

    public List<Dept> getList() {
        return dao.getList();
    }
}
